// 消息相关接口
import request from '../service/service';

/**
 * 获取消息数据
 */
export function getMessageList(data) {
  return request({
    protocol: '/bus/message/findPage',
    options: data,
    method: 'get',
  });
}

/**
 * 根据id阅读消息
 */
export function messageRead(data) {
  return request({
    protocol: '/bus/message/readMsg',
    options: data,
    method: 'post',
    hasQuery: true,
  });
}

/**
 * 获取待办消息
 */
export function getAgencyMsgList(data) {
  return request({
    protocol: '/bus/agency/msg/findPage',
    options: data,
    method: 'get',
  });
}

/**
 * 删除待办消息
 */
export function delAgencyMsg(data) {
  return request({
    protocol: '/bus/agency/msg/deleteByIds',
    options: data,
    method: 'delete',
  });
}
